#ifndef __HardwareProfile_h__
#define __HardwareProfile_h__

//#define Proteus

#include <htc.h>
#define _XTAL_FREQ 4000000
#include "afx.h"
#include "TypeDefine.h"
#include "Verify.h"
#include "FlagDefine.h"


#define T1CYCLE 15536 //100ms


#define ONEWIRE_PIN_DIR	TRISD1
#define ONEWIRE_PIN_W 	LATD1
#define ONEWIRE_PIN_R 	RD1
#define OneWire_ReadDelayOffSet 7
#include "OneWire.h"
#include "DS18x20.h"

#include "Display.h"


#define ATCommand_ResetWait() TMR2ON=0;TMR2=0;TMR2ON=1
#define Uart_Uart1
#define Uart_TRMT TRMT
#define Uart_TXREG TXREG
#include "Uart.h"
#define ATCommand_MaxRX 100
#include "ATCommand.h"


unsigned int SystemTick;
unsigned int ExitCallTick;
unsigned int WaitGPRSTick;
unsigned int FlashTick;
unsigned int ExitSetTick;
unsigned int SleepTick;
unsigned int PickTick;
unsigned int GetTTick;
unsigned char KeyEnterTimes;
uint CurTemp;
_GFlags gFlags;
unsigned char gTest;


void InitSystem( void );
unsigned char InitSim900a(void);
unsigned char GPRSSend(void);
#endif
